#ifndef MESHFILE_H
#define MESHFILE_H
#include <string>
#include <cstdlib>
#include <fstream>
//#include "IRessource.h"

namespace glow
{
	class MeshFile //: public IRessource
	{
		private :
			float * _mesh;
			unsigned int * _faces;
			
			int _sizeV;
			int _sizeF;
			
		public :
		
			MeshFile(std::string fileName);
		
			/*
			 * Loads the file fileName in the mesh array.
			 */ 
			void load (std::string fileName);
			
			/*
			 * Returns the mesh array.
			 */
			float * getVertices();
			
			/*
			 * Returns the mesh array's size. 
			 */
			int getVerticesSize();
			
			/*
			 * Returns the faces array; 
			 */
			unsigned int * getFaces();
			
			/*
			 * Return the face array's size
			 */ 
			int getFacesSize();
			
			~MeshFile();
	};
}

#endif
